package com.plant.address.feign;

import com.plant.common.domain.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("plant-user")
public interface UserFeign {

    @GetMapping("user/findById1/{id}")
    public User findById1(@PathVariable Integer id);

    @GetMapping("user/findAllUser")
    List<User> findAllUser();
}
